<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored="false" %>
<%@ include file="top.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <base href="${basePath}">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>竞拍结果页面</title>
<link href="css/common.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="wrap">
<!-- main begin-->
  <div class="sale">
    <h1 class="lf">拍卖结束的商品</h1>
    <div class="right rulse">当前用户是：
        <span class="blue strong">
             <c:if test="${not empty username}">
                 <p>${username}</p>
             </c:if>
        </span></div>
    <div class="cl"></div>
  </div>
<div class="items">
      <ul class="rows even strong">
        <li>名称</li>
        <li>开始时间</li>
        <li>结束时间</li>
        <li>起拍价</li>
        <li class="list-wd">成交价</li>
        <li class="borderno">买家</li>
      </ul>
    <c:forEach var="count" items="${count}">
      <ul class="rows">
        <li><a href="国书" title="">${count.auctionname}</a></li>
        <li> <fmt:formatDate value="${count.auctionstarttime}" pattern="yyyy-MM-dd HH:mm:ss"/></li>
        <li> <fmt:formatDate value="${count.auctionendtime}" pattern="yyyy-MM-dd HH:mm:ss"/></li>
        <li>${count.auctionstartprice}</li>
        <li class="list-wd">${count.auctionrecord.auctionprice}</li>
        <li class="borderno red"><a href="#">${count.auctionuser.username}</a></li>
      </ul>
    </c:forEach>
  </div>
  <h1>拍卖中的商品</h1>
  <div class="items records">
      <ul class="rows even strong rowh"> 
        <li>名称</li>
        <li>开始时间</li>
        <li>结束时间</li>
        <li>起拍价</li>
        <li class="borderno record">出价记录</li>
        <div class="cl"></div>
      </ul>
      <c:forEach var="count2" items="${count2}">
    <ul class="rows">
        <li><a href="国书" title="">${count2.auctionname}</a></li>
        <li> <fmt:formatDate value="${count2.auctionstarttime}" pattern="yyyy-MM-dd HH:mm:ss"/></li>
        <li><fmt:formatDate value="${count2.auctionendtime}" pattern="yyyy-MM-dd HH:mm:ss"/></li>
        <li>${count2.auctionstartprice}</li>
        <li class="borderno blue record">
          <p>${count2.auctionuser.username} ${count2.auctionrecord.auctionprice}元</p>
        </li>
        <div class="cl"></div>
      </ul>
      </c:forEach>
  </div>
<!-- main end-->
</div>
</body>
</html>
